﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace ElingOA6_Admin_DSJCJ.BLL
{
    public class ICACDocument
    {
        private readonly ElingOA6_Admin_DSJCJ.DAL.ICACDocument dal = new ElingOA6_Admin_DSJCJ.DAL.ICACDocument();
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public decimal Add(ElingOA6_Admin_DSJCJ.Model.ICACDocument model)
        {
            return dal.Add(model);
        }


        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public DataSet GetPath() {

            return dal.GetPath();
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public ElingOA6_Admin_DSJCJ.Model.ICACDocument GetModel(string title)
        {
            return dal.GetModel(title);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="title"></param>
        /// <returns></returns>
        public bool Exists(string title)
        {
            return dal.Exists(title);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool Update(ElingOA6_Admin_DSJCJ.Model.ICACDocument model)
        {
            return dal.Update(model);
        }


        /// <summary>
        /// 获得多条文件存放路径
        /// </summary>
        /// <param name="strAdCds"></param>
        /// <param name="strEntityNo"></param>
        /// <returns></returns>
        public List<string> GetSrvName(string title, decimal icacDocumentID)
        {
            return dal.GetSrvName(title, icacDocumentID);
        }
    }
}
